<template>
    <div class="photoinfo-container">
        <h3>图片详情</h3>
        <p class="subtitle">
            <span>发表时间：2018-11-17 17:30:07</span>
            <span>点击：10</span>
        </p>
        <hr>
        <!-- 缩略图区域 -->
        <vue-preview :slides="slide1"></vue-preview>
        <!-- 图片内容区域 -->
        <div class="content">这是一幅美丽的风景图~~~~~值得收藏</div>

        <!-- 放置一个现成的评论子组件 -->
        <cmt-box></cmt-box>
    </div>
</template>

<script>
//1.导入评论子组件
import comment from "../subcomponents/comment.vue";
export default {
  data() {
    return {
      slide1: [
        {
          src:require('../../images/l1.jpg'),
          msrc:require('../../images/l1s.jpg'),
          alt: "picture1",
          title: "Image Caption 1",
          w: 600,
          h: 400
        },
        {
          src:require('../../images/l2.jpg'),
          msrc:require('../../images/l2s.jpg'),
          alt: "picture2",
          title: "Image Caption 2",
          w: 1200,
          h: 900
        }
      ]
    };
  },
  methods: {},
  components: {
    "cmt-box": comment
  }
};
</script>

<style lang="scss" scoped>
.photoinfo-container {
  padding: 3px;
  h3 {
    color: #26a2ff;
    font-size: 15px;
    text-align: center;
    margin: 15px 0;
  }
  .subtitle {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }
  .content {
    font-size: 13px;
    line-height: 30px;
  }
}
</style>

